package com.hzgj.soa.spring.client;

import com.hzgj.soa.service.UserClient;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by ye.pan on 2015/6/10.
 */
public class Main {

    public static void main(String[] args) throws InterruptedException {
        new Main().start();
        while (true) ;

    }

    public void start() {
        final ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext(
                "classpath:demo-consumer.xml");
        UserClient client = app.getBean(UserClient.class);
        client.login();
    }
}
